/*
package com.ruoyi.web.consumer;

import com.ruoyi.datastatistics.service.MqttHaiAnPaiShuiDbService;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(topic = "mqtt_hags", consumerGroup = "mqtt")
public class MQTT_HaiAnPaiShuiConsumer implements RocketMQListener<String> {

    @Autowired
    private MqttHaiAnPaiShuiDbService mqttHaiAnPaiShuiDbService;

    @Override
    public void onMessage(String message) {
        mqttHaiAnPaiShuiDbService.parseHaiAnPaiShuiDbFromMqtt(message);
    }
}
*/
